<?php if (!defined('THINK_PATH')) exit();?><div class="bjui-pageHeader">
	<div class="pull-right">
		<button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
	</div>
</div>
<div class="bjui-pageContent">
	<form action="<?php echo U('save_web');?>" data-toggle="validate" data-alertmsg="false" class="navtabForm">
		<div class="form-group">
		    <label class="x100">网站备案号:</label>
		    <input type="text" name="web_beian" data-rule="required" placeholder="粤00-123456号" value="<?php echo ($va["web_beian"]); ?>"/>
		</div>
		<div class="form-group">
		    <label class="x100">网站名称:</label>
		    <input type="text" name="web_name" data-rule="required" placeholder="Truesion Shop" value="<?php echo ($va["web_name"]); ?>"/>
		</div>
		<div class="form-group clearfix">
			<label class="x100 pull-left">网站logo:</label>
			<div class="pull-left parent_img">
			<?php if($va["web_logo"] == null): ?><img src="http://www.bxd.com/Public/images/58008889b30bc.jpg" alt="LOGO" width="70" />
			<?php else: ?>
			    <img src="<?php echo ($va["web_logo"]); ?>" alt="LOGO" width="70" /><?php endif; ?>
				<input type="hidden" name="web_logo" value="<?php echo ($va["web_logo"]); ?>"/>
				<span data-toggle="upload" 
				data-uploader="<?php echo U('Index/upload');?>"
				 data-file-type-exts="*.png;*.jpg"
				 data-icon="cloud-upload"
				 data-on-upload-success="upload_callback"
				 data-auto="true"
				 data-button-text="上传图片"
				></span>
			</div>
		</div>
		<div class="form-group">
		    <label class="x100">网站标题:</label>
		    <input type="text" name="web_title" data-rule="required" class="w400" value="<?php echo ($va["web_title"]); ?>"/>
		</div>
		<div class="form-group">
		    <label class="x100">网站描述:</label>
		    <input type="text" name="web_description" data-rule="required" class="w500" placeholder="description 长度控制在50字以内最佳" value="<?php echo ($va["web_description"]); ?>"/>
		</div>
		<div class="form-group">
		    <label class="x100">网站关键字:</label>
		    <input type="text" name="web_keywords" data-rule="required" class="w500" placeholder="一般设置3-8个左右的关键词,每个关键词2-4个字为最佳,每个词用半角英文逗号分隔即可" value="<?php echo ($va["web_keywords"]); ?>"/>
		</div>
		<!-- <div class="form-group">
		    <label class="x100">联系人:</label>
		    <input type="text" name="" data-rule="required" />
		</div>
		<div class="form-group">
		    <label class="x100">联系电话:</label>
		    <input type="text" name="" data-rule="required" />
		</div> -->
		<!-- <div class="form-group">
		    <label class="x100">具体地址:</label>
		    <input type="text" name="" data-rule="required" class="w400" />
		</div> -->
		<div class="form-group">
		    <label class="x100">客服QQ:</label>
		    <input type="text" name="web_service_qq" data-rule="required;number" value="<?php echo ($va["web_service_qq"]); ?>"/>
		</div>
		<div class="form-group clearfix">
			<label class="x100 pull-left">客服微信二维码:</label>
			<div class="pull-left parent_img">
			<?php if($va["web_service_erweima"] == null): ?><img src="http://www.bxd.com/Public/images/58008889b30bc.jpg" alt="LOGO" width="70" />
		    <?php else: ?>
		        <img src="<?php echo ($va["web_service_erweima"]); ?>" alt="LOGO" width="70" /><?php endif; ?>
				<input type="hidden" name="web_service_erweima" value="<?php echo ($va["web_service_erweima"]); ?>"/>
				<span data-toggle="upload"
					  data-uploader="<?php echo U('Index/upload');?>"
					  data-file-type-exts="*.png;*.jpg"
					  data-icon="cloud-upload"
					  data-on-upload-success="upload_callback"
					  data-auto="true"
					  data-button-text="上传图片"
				></span>
				<span class="text-warning">注:请上传不少于375*375的正方型图片</span>
			</div>
		</div>
		<div class="form-group">
		    <label class="x100">客服电话:</label>
		    <input type="text" name="web_service_phone" data-rule="required" value="<?php echo ($va["web_service_phone"]); ?>"/>
		</div>
		<div class="form-group">
		    <label class="x100">网站底部信息:</label>
		    <textarea rows="10" cols="50" name="web_bottom"><?php echo ($va["web_bottoms"]); ?></textarea>
		</div>
		<div class="form-group">
		    <label class="x100">网站第三方统计代码:</label>
		    <textarea rows="10" cols="50" name="web_script"><?php echo ($va["web_script"]); ?></textarea>
		</div>
	</form>
</div>

<div class="bjui-pageFooter">
		
	<?php if(save == save): ?><ul>
			<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == close): ?>
	    <ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
	<?php elseif(save == page and $show != null): ?>
		<ul>
	        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
	    </ul>
		    <div class="pages">
		        <span>每页&nbsp;</span>
		        <div class="selectPagesize">
		            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
		                <option value="<?php echo ($show['listrow']); ?>"><?php echo ($show['listrow']); ?></option>
		                <option value="60">60</option>
		                <option value="120">120</option>
		                <option value="150">150</option>
		            </select>
		        </div>
		        <span>&nbsp;条，共 <?php echo ($show['total']); ?> 条</span>
		    </div>
		    <div class="pagination-box" data-toggle="pagination" data-total="<?php echo ($show['total']); ?>" data-page-size="<?php echo ($show['listrow']); ?>" data-page-current="1">
		    </div>
	<?php elseif(save == page and $show == null): ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul>
	<?php else: ?>
		<ul>
			<li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
		</ul><?php endif; ?>

</div>